import * as API from '../common/api';
import Immutable from 'seamless-immutable'

const initialState = Immutable({
  content: '王雷'
})

export default function changeText( state = initialState, action){
  switch (action.type) {
    case API.CHANGE_CONTENT : 
      return {
        ...state,
        content: action.content
      }
      break
    default:
      return state
  }
}